package com.fingard.dsp.bank.reqrespobj.sendsmscode;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RequestBase;
import com.fingard.dsp.bank.reqrespobj.sendsmscode.detail.ReqSendSmsCodeDetail;
import com.fingard.xml.XmlTextReader;

//发送短信验证码请求对象
public class ReqSendSmsCode extends RequestBase {

    public ReqSendSmsCodeDetail singleDetail = null;

    private XmlTextReader xmlReader;

    public ReqSendSmsCode(XmlTextReader p_xmlReader, ReqRespHeader p_header) throws Exception {
        reqHeader = p_header;
        xmlReader = p_xmlReader;

        if (xmlReader.read(PATH_Detail)) {//"/ATSYH/TransReq/TransParam/DetailRecord"
            singleDetail = new ReqSendSmsCodeDetail(xmlReader.readedXElement);
        } else {
            throw new Exception("不存在节点：" + PATH_Detail);
        }
    }
}
